/**
 * 数据源处理模块
 */
(function($ns){
    /**
     * 删除数据源
     */
    $ns.deleteDataSource = function(dsid) {
	Qadmin.FW.Dialog.confirm({
	    msg: '确定要删除记录？',
	    ok: function() {
		Qadmin.FW.Ajax.get({
		    url: [QG_CONFIG.PATH + "datasource/delete.htm?dsid=", dsid].join("")
		}, function(xhr){
		    location.reload();
		});
	    }
	});
    };
    
    /**
     * 更新数据源
     */
    $ns.updateDataSource = function(dsid) {
        Qadmin.FW.Url.goToUrl(QG_CONFIG.PATH + "datasource/update.htm?dsid="+dsid);
    }

})(using("Qadmin.App.DataSource"));